import request from '../utils/request';

//查询留言信息 
export async function list(data,params) {
    return request({
        url: '/message/'+data.current+'/'+data.size,
        method: 'get',
        headers:{
            'Content-Type': 'application/json',
            'token': params.token 
        }
    });
};

//删除留言信息
export async function delMsg(data,params) {
    return request({
        url: '/message/'+data.id,
        method: 'delete',
        headers:{
            'Content-Type': 'application/json',
            'token': params.token 
        }
    });
};

